<titlemenu></titlemenu>
<div class="dj-list">
    <div class="dj-list-body">
        <div party-tree data-selectdzzdm="treeparams.selectdzzdm" data-selectdzzmc="treeparams.selectdzzmc"
             data-defaultselected="treeparams.defaultselected" data-isunfold="treeparams.isunfold"></div>
        <div class="dj-list-content">
            <div class="card">
                <div activate-input activate-select class="header search-header">
                    <div fold-partytree data-isunfold="treeparams.isunfold"></div>
                    <div class="search-param-panel">
                        <div class="search-input">
                            <form class="form-horizontal">
                                <div class="row clearfix form-inline">
                                    <div class="col-lg-2 col-md-2 dj-label">
                                        <label>当前选中组织</label>
                                    </div>
                                    <div class="col-lg-2 col-md-2">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <div class="input-group input-group-search">
                                                    <input name="selectdzzmc" type="text" style="min-width: 90px"
                                                           ng-model="treeparams.selectdzzmc" class="form-control"
                                                           ng-disabled="true"/>
                                                    <span class="input-group-addon"
                                                          ng-click="setisunfold()">选择</span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-lg-2 col-md-2 dj-label">
                                        <label>姓名</label>
                                    </div>
                                    <div class="col-lg-2 col-md-2">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <input name="userName" class="form-control" type="text"
                                                       ng-model="selectparams.userName" ng-keypress="($event.which === 13)?search():0"
                                                       placeholder=""/>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-lg-2 col-md-2 dj-label">
                                        <label>年份</label>
                                    </div>
                                    <div class="col-lg-2 col-md-2">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <input name="year" class="form-control" ng-change="search()"
                                                       ng-model="selectparams.year"
                                                       data-date-type="string" data-date-format="yyyy" type="text"
                                                       data-start-view="2" data-min-view="2" autoclose="true" bs-datepicker bs-datepicker/>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <div class="row clearfix form-inline" ng-show="isShow">
                                    <div class="col-lg-2 col-md-2 dj-label">
                                        <label>审核状态</label>
                                    </div>
                                    <div class="col-lg-2 col-md-2">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <select class="form-control show-tick" ng-change="search()"
                                                        ng-model="selectparams.recordStatus"
                                                        ng-options="type.dickey as type.dicvalue for type in statusList"
                                                        class="form-control"
                                                        name="recordStatus">
                                                    <option value="">--全部--</option>
                                                </select>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </form>
                        </div>
                        <div class="search-btn" style="margin-right: 20px;">
                            <div style="min-width: 13em">
                                <span class="moreSpan" ng-click="isShowClick()" style='padding-right:1em;cursor:pointer;'>{{moreTxt}}<i class="material-icons" style="position: relative;top:7px;">{{isShow ? 'expand_less' : 'expand_more'}}</i></span>
                                <button  class="btn btn-default1"
                                         ng-click="search()">查询
                                </button>
                                <button  class="btn btn-default1 btn-reset"
                                         ng-click="reset()">重置
                                </button>
                            </div>
                        </div>
                    </div>
                    <div class="search-btn" style="margin-right: 20px;">
                        <div style="float: right">
                            <button role-permission-code="partyHelp.btnAdd" class="btn btn-default1"
                                    ng-click="add()">新增
                            </button>
                            <button role-permission-code="partyHelp.btnImport" class="btn btn-default1"
                                    ng-click="import()">导入
                            </button>
                            <button role-permission-code="partyHelp.btnApprove" class="btn btn-default1"
                                    ng-click="approve(true)">审核通过
                            </button>
                            <button role-permission-code="partyHelp.btnApprove" class="btn btn-default1"
                                    ng-click="approve(false)">审核不通过
                            </button>
                            <button role-permission-code="partyHelp.btnExport" class="btn  btn-default1"
                                    ng-click="export()">导出
                            </button>
                            <button role-permission-code="partyHelp.btnDelete" class="btn  btn-default1"
                                    ng-click="delete()">删除
                            </button>
                        </div>
                    </div>
                </div>
                <div class="body">
                    <div class="table-responsive list-table-panel">
                        <table class="table table-bordered table-striped table-hover js-basic-example dataTable text-nowrap tablefix">
                            <thead>
                            <tr>
                                <th class="th-select" th-select-all datalist="dataList"></th>
                                <th class="th-rownum"><div>序号</div></th>
                                <th>姓名</th>
                                <th>学号/工号</th>
                                <th>所在党组织</th>
                                <th>年份</th>
                                <th width="300">帮扶原因</th>
                                <th>审核状态</th>
                                <th>审核人</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr ng-repeat="it in dataList">
                                <td class="text-center">
                                    <input type="checkbox" id="{{pageId}}_md_checkbox_{{$index+1}}" class="filled-in chk-col-red" ng-model="it.rowChecked" />
                                    <label class="checkbox_lable" style="top:6px;"
                                           for="{{pageId}}_md_checkbox_{{$index+1}}"></label>
                                </td>
                                <td class="text-center" td-rownum index="$index" pageindex="selectparams.pageindex" pagesize="selectparams.pagesize"></td>
                                <td>{{it.userName}}</td>
                                <td>{{it.userNo}}</td>
                                <td>{{it.partyName}}</td>
                                <td>{{it.year}}</td>
                                <td title="{{it.helpReason}}">{{it.helpReason}}</td>
                                <td>{{it.recordStatusName}}</td>
                                <td>{{it.approveUserName}}</td>
                                <th>
                                    <button class="btn td-btn bg-light-green waves-effect"
                                            role-permission-code="partyHelp.btnEdit"
                                            ng-click="edit(it.partyHelpID)"
                                            title="修改" ng-if="it.recordStatus==1">
                                        修改
                                    </button>
                                </th>
                            </tr>
                            <tr ng-if="dataList.length==0">
                                <td colspan="12" class="text-center">暂无数据</td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <pagination data-pageindex="selectparams.pageindex" data-pagesize="selectparams.pagesize"
                                data-ptotal="pageInfo.ptotal"></pagination>
                </div>
            </div>
        </div>
    </div>
</div>